{extend name="../template@default/forum_public"} {block name="content"}
<!-- 置顶的内容 -->
<div class="mdui-col-xs-12 mdui-m-y-1">
    <div class="mdui-card">
        <div class="mdui-card-media">
            <img src="__IMG__/card.png" alt="" height="100">
            <div class="mdui-card-media-covered mdui-card-media-covered-top">
                <div class="mdui-card-primary">
                    <div class="mdui-card-primary-title">置顶</div>
                </div>
            </div>
        </div>

        <div class="mdui-card-content">

            <ul class="mdui-list">
                {volist name="tops" id="vo"}
                <li class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-avatar">
                        <img src="{$vo.userData.avatar}" alt="{$vo.userData.username}" title="{$vo.userData.username}">
                    </div>
                    <div class="mdui-list-item-content">
                        <a class="mdui-list-item-title" href="{:url('index/topic/index',['tid'=>$vo.tid])}">{$vo.subject} {:outBadge($vo)}</a>
                        <div class="mdui-list-item-text mdui-list-item-one-line">{$vo.content|raw}</div>
                        <div class="mdui-list-item-text">
                            <a href="{:url('index/forum/index',['fid'=>$vo.fid])}" class="layui-badge layui-bg-blue" title="{$vo.forumName}">{$vo.forumName}</a> <a href="{:url('index/user/inde',['uid'=>$vo.uid])}">{$vo.userData.username}</a>
                            <span title="{$vo.create_time}"> {$vo.time_format}</span>
                            <span class="mdui-float-right">
                                <i class="mdui-icon material-icons">looks</i>{$vo.views}</span>
                            <span class="mdui-float-right">
                                <i class="mdui-icon material-icons">comment</i>{$vo.comment}</span>
                        </div>
                    </div>
                </li>
                <li class="mdui-divider-inset mdui-m-y-0"></li>
                {/volist}

            </ul>

        </div>
    </div>
</div>

<!-- 论坛最新内容列表页 -->
<div class="mdui-col-xs-12 mdui-col-sm-8">

    <!-- 最新内容 -->

    <div class="mdui-tab" mdui-tab>
        <a href="#topic-all" class="mdui-ripple">综合</a>
        <a href="#topic-essence" class="mdui-ripple">精华</a>
    </div>

    <div id="topic-all">
        <ul class="mdui-list" id="topic-cps">

        </ul>
    </div>

    <div id="topic-essence">
        <ul class="mdui-list" id="topic-ess">

        </ul>
    </div>

</div>
{include file="/../template@default/right_tool"} {/block}{block name="js"}
<script src="__JS__/mltree-flow.js"></script>
<script>
    //调用flow加载
    var flow = new mfFlow('index');
    flow.flow();    
</script>
{/block}